package com.lesso.yjy.sunflower.model;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableLogic;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDate;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("rel_employee_attendance_rule")
public class EmployeeAttendanceRule extends BaseModel<EmployeeAttendanceRule> {
    private static final long serialVersionUID = 1L;

    public static final String EMPLOYEE_ID = "employee_id";

    private Long employeeId;

    private String ruleCode;

    @TableField("effective_date")
    private LocalDate effectiveDate;

    @TableField("expiry_date")
    private LocalDate expiryDate;

    @TableField("del_status")
    @TableLogic
    private Integer delStatus;
}
